//
//  ViewController.m
//  22-SDWebImage
//
//  Created by Snow on 16/8/12.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "ViewController.h"
#import "UIImageView+WebCache.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *imageview;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [_imageview sd_setImageWithURL:[NSURL URLWithString:@"http://www.liatui.com/uploads/allimg/160803/11501WU9-1.jpg"] placeholderImage:[UIImage imageNamed:@"20140511163208_eYKnH.thumb.600_0"] options:SDWebImageAvoidAutoSetImage completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
    
    }];
    NSLog(@"%@", NSHomeDirectory());
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
